package com.dodi.spring.dtd;

import static org.junit.Assert.assertEquals;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.w3c.dom.Element;


public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BeanFactory bf = new XmlBeanFactory(new ClassPathResource("dtd/applicationContext.xml"));
		
		User user = (User) bf.getBean("user");

		System.out.println(user);
		
	}

}
